import http from '../utils/http.js'
//登录
export function login_api(data) {
    return http({
        url:'/api/user/login',
        method:'post',
        data
    })
}
//注册
export function register_api(data) {
    return http({
        url:'/api/user/register',
        method:'post',
        data
    })
}
//上传文件

export function ajax_upload_api(data) {
    return http({
        url:'/index/ajax/upload',
        method:'post',
        data,
    })
}
//保存用户信息
export function user_profile_api(data) {
    return http({
        url:'/api/user/profile',
        method:'post',
        data
    })
}

